package com.atguigu.yygh.hosp.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wans
 * @create 2021-11-05 20:03
 */
@Configuration
@MapperScan("com.atguigu.yygh.hosp.mapper")
public class MapperConfig {
    @Bean
    public PaginationInterceptor  paginationInterceptor(){
        return new PaginationInterceptor();
    };

}
